<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo $_title; ?></title>
	<link href="css/xxf.css" rel="stylesheet">

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <span class="navbar-brand""><?php echo $_title; ?>(登录93次)</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope fa-fw"></i>消息
                    </a>
                    <!-- /.dropdown-user -->
                </li>
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li><a href="javascript:navObj.about();"><i class="fa fa-mobile-phone fa-fw"></i> 关于</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="<?php echo $_url; ?>out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                
                <!-- /.dropdown -->
            </ul>

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="/?admin" ><i class="fa fa-fw fa-dashboard"></i> 首页</a>
                        </li>
                                                <li>
                           	<a href="/?usermanage" ><i class="fa fa-fw fa-dashboard"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="/?qxmanage" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="/?usersysgroup" ><i class="fa fa-fw fa-dashboard"></i> 人员系统分组</a>
                        </li>
                                                <li>
                           	<a href="/?peixunbanadd" ><i class="fa fa-fw fa-dashboard"></i> 培训班管理</a>
                        </li>
                                                <li>
                           	<a href="/?peixunbanbaoming" ><i class="fa fa-fw fa-dashboard"></i> 学员和课程管理</a>
                        </li>
                                                <li>
                           	<a href="/?peixunchaxun" ><i class="fa fa-fw fa-dashboard"></i> 培训学员查询</a>
                        </li>
                                                <li>
                           	<a href="/?peixunzhusu" ><i class="fa fa-fw fa-dashboard"></i> 学员住宿</a>
                        </li>
                                                <li>
                           	<a href="/?peixunshoufei" ><i class="fa fa-fw fa-dashboard"></i> 学员收费</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            收费情况：
                            <span class="xxf_red">
                            	第三期主要负责人综合班复训                            	(合计已收：5500)
                            </span>
                            <a href="<?php echo $_url; ?>peixunshoufeimingxi&type=down&pid=12">下载本表</a>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>工作单位</th>
                                        <th style="min-width: 60px;">姓名</th>
                                        <th>电话</th>
                                        <th>收费</th>
                                        <th>财务收费床位类型</th>
                                        <th>招待所床位类型</th>
                                        <th>财务备注</th>
                                        <th>招待所备注</th>
                                        <th>是否欠费</th>
                                        <th>入住时间</th>
                                        <th>入住房间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	                                    <tr class="odd gradeA " id='6'>
                                    	<td>6</td>
                                        <td>重庆煤矿安全技术中心</td>
                                        <td><a href="<?php echo $_url; ?>peixunchaxunlist&puid=6">徐秀峰</a></td>
                                    	<td>18983800300</td>
                                        <td>0</td>
                                        <td></td>
                                        <td>二类床位</td>
                                        <td></td>
                                        <td>zzz</td>
                                        <td>欠费</td>
                                        <td>2017-11-01</td>
                                        <td>644</td>
                                        <td style="min-width: 34px;"><a href="<?php echo $_url; ?>peixunshoufeiadd&puid=6">收费</a></td>
                                    </tr>
                                	                                    <tr class="even gradeA " id='7'>
                                    	<td>7</td>
                                        <td>重庆市南桐矿业公司东林煤矿</td>
                                        <td><a href="<?php echo $_url; ?>peixunchaxunlist&puid=7">袁海龙</a></td>
                                    	<td>15123155945</td>
                                        <td>3200</td>
                                        <td>一类床位</td>
                                        <td>一类床位</td>
                                        <td></td>
                                        <td></td>
                                        <td>不欠费</td>
                                        <td></td>
                                        <td>321</td>
                                        <td style="min-width: 34px;"><a href="<?php echo $_url; ?>peixunshoufeiadd&puid=7">收费</a></td>
                                    </tr>
                                	                                    <tr class="odd gradeA " id='8'>
                                    	<td>8</td>
                                        <td>重庆千牛建设工程有限公司</td>
                                        <td><a href="<?php echo $_url; ?>peixunchaxunlist&puid=8">王刚</a></td>
                                    	<td>18696583840</td>
                                        <td>2300</td>
                                        <td>三类床位</td>
                                        <td>三类床位</td>
                                        <td></td>
                                        <td></td>
                                        <td>不欠费</td>
                                        <td></td>
                                        <td>123</td>
                                        <td style="min-width: 34px;"><a href="<?php echo $_url; ?>peixunshoufeiadd&puid=8">收费</a></td>
                                    </tr>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>

    <script src=js/jquery.xxfset.js></script>
    <script src=js/jquery.form.js></script>
    <script src=js/app.js></script>
<script type="text/javascript">
    var navObj={
    		setting:function(){
				$.xconfirm("原密码 <input type='password' id='navObj_pass0'><br><br>新密码 <input type='password' id='navObj_pass1'><br><br>新密码 <input type='password' id='navObj_pass2'>",
					function(tf){
						if(tf){
							var ypass=$("#navObj_pass0").val();
							var xpass1=$("#navObj_pass1").val();
							var xpass2=$("#navObj_pass2").val();
							if(ypass.length<1||xpass1.length<1||xpass2.length<1){
								alert("输入错误，修改失败！");
							}else{
								if(xpass1!=xpass2){
									alert("新密码不一致，修改失败！");
								}else{
									$.post("<?php echo $_url; ?>Upassword",{uid:30,pass1:ypass,pass2:xpass1},function(data){
										if(data!=0){
											alert("修改成功！");
											location.href="<?php echo $_url; ?>";
										}else{
											alert("原密码不正确，修改失败！");
										}
									});

								}
							}
						}
				});
    		},
    		userinfo:function(){
    			//alert(2);
            },
            about:function(){
				$.xalert("版本1.0 20171009");
            }
    }
</script>
</body>

</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "desc" ]]
        });
    });
   
    function del(pid){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("peixunbanadd"),{type:'del',pid:pid},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    function add(){
		var shiqi=$("#shiqi").val();
 		var bzrid=$("#bzrid").val();
 		var pname=$("#pname").val();
 		if(shiqi=="0"||bzrid=="0"||pname.length<1){
			$.xalert("请将信息填写完整！");return false;
 	 	}
    	$.xconfirm("确定添加？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("peixunbanadd"),{type:'add',shiqi:shiqi,bzrid:bzrid,pname:pname,uid:30},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("添加失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }    
    </script>